{extend name="common:base" /}

{block name="main"}
<div class="admin-content-body">
    <div class="am-cf am-padding am-padding-bottom-0">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">用户详情</strong> / <small>Users Detail</small></div>
    </div>

    <hr>
    <div class="am-g">

        <div class="am-u-sm-12 am-u-md-6">
          <div class="am-input-group am-input-group-sm">
            <div class="am-btn-group am-btn-group-xs">
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 返回</button>
            </div>
          </div>
        </div>

    </div>
    <div class="am-g">
        <div class="am-u-sm-12">
            <form class="am-form">
                <table class="am-table am-table-striped am-table-hover table-main">
                    <thead>
                    <tr>
                        <th class="table-name">用户名</th>
                        <th class="table-insel">在售商品量</th>
                        <th class="table-nosel">下架商品量</th>
                        <th class="table-seled">已售商品量</th>
                        <th class="table-date am-hide-sm-only">上次登陆时间</th>
                        <th class="table-credit">信用度</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>{$username}</td>
                        <td>{$in_sale}</a></td>
                        <td>{$nosale}</td>
                        <td>{$saled}</td>
                        <td class="am-hide-sm-only">
                        {if condition="$last_login_time > 0"}
                            {$last_login_time|get_time_diff=time(),###}
                        {else/}
                            -
                        {/if}
                        </td>
                        <td></td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div>

    </div>

    <div class="am-g">
        <div class="am-u-sm-12">
            <form class="am-form">
                <table class="am-table am-table-striped am-table-hover table-main">
                    <thead>
                        <tr>
                            <th class="table-id">ID</th>
                            <th class="table-title">商品名</th>
                            <th class="table-type">商品类型</th>
                            <th class="table-author">用户名</th>
                            <th class="table-status">商品当前状态</th>
                            <th class="table-set">添加时间</th>
                        </tr>
                    </thead>
                    <tbody>
                    {volist name="list" id="vo"}
                        <tr>
                            <td>{$vo.good_id}</td>
                            <td><a href="{:url('goods/detail',['good_id'=>$vo.good_id])}">{$vo.title}</a></td>
                            <td>{$vo.cate_id|get_goodtype}</td>
                            <td>{$vo.user_id|get_username}</td>
                            <td>{$vo.status}</td>
                            <td>
                            {if condition="$vo.create_time > 0"}
                            {$vo.create_time|get_time_diff=time(),###}前
                            {else/}
                                -
                            {/if}
                            </td>
                        </tr>
                    {/volist}
                    </tbody>
                </table>
                    <div class="am-cf">
                        <div class="am-cf">
                        {$list->render()}
                        符合当前条件的共 {$count} 条记录
                    </div>
                </div>
                <hr />
                <p>注：.....</p>
            </form>
        </div>
    </div>

</div>
{/block}